oop = require "oop.include"
oop.package("test")

local sub = oop.test.Sub:new('dmx', 'djy')
sub:test()
sub:sub_test()
print("============ss================")
local ss = oop.test.Sub:new("ddd", "yyy")
ss:test()
print(sub.var_self)

print("============test initInstance=============")
local sub1 = oop.test.Sub1:initInstance('dd1', 'dd2')
local sub1 = oop.test.Sub1:initInstance()
sub1.hehe = 1000
local sub1 = oop.test.Sub1:new()
sub1:sub1_test()
print(sub1.hehe)
print(oop.test.Sub1.hehe)
oop.test.Sub1:sub1_test2()


print("============test getClassData=============")
print(sub:getClassName(), 'className')
print(sub:getPackageName(), 'packageName')
print(sub:getFullClassName(), 'fullClassName')

print(oop.test.Sub1:getClassName(), 'className')
print(oop.test.Sub1:getPackageName(), 'packageName')
print(oop.test.Sub1:getFullClassName(), 'fullClassName')

